package com.niiwoo.civet.trade.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * APP提示语配置枚举(与神盾配置枚举统一)
 */
@Getter
@AllArgsConstructor
public enum PromptMsgTypeEnum {

    OPENLOANACCOUNTPROMPTMSG("openLoanAccountPromptMsg","开通借款存管账户-小喇叭提示文案"),
    LOANDETAIL("loanDetail","借款资料页-小喇叭文案"),
    LOANDATADETAILAMOUNTAUTH("loanDataDetailAmountAuth","借款资料页-提额认证提示文案"),
    AMOUNTAUTH("amountAuth","提额认证页-小喇叭文案"),
    LOANDETAILCONFIRM("loanDetailConfirm","借款详情页-确认借款-小喇叭文案"),
    LOANDETAILCONFIRMAMOUNTAUTH("loanDetailConfirmAmountAuth","借款详情页-确认借款-提额认证提示文案"),
    LOANDETAILMODIFYDETAIL("loanDetailModifyDetail","借款详情页-修改资料-小喇叭文案"),
    AMOUNTAUTHREAPPLYLOAN("amountAuthReapplyLoan","提额认证-重新申请借款-小喇叭文案")
    ;

    private String configKey;
    private String desc;

    public static PromptMsgTypeEnum enumOf(String configKey) {
        for (PromptMsgTypeEnum promptMsgType : values()) {
            if (promptMsgType.configKey.equals(configKey)) {
                return promptMsgType;
            }
        }
        return null;
    }

}
